* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: none;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, Tahoma, Arial, "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* DEBUG:  */
  background: lightskyblue;
}

body {
  display: flex;
  flex-direction: column;
}

body > header {
  height: 40px;
  display: flex;
  /* DEBUG: */
  background-color: lightslategray;
  /* border-bottom: 1px solid #111; */
}

body > header.hat {
  height: 22px;
}

body > header > .logobar {
  min-width: 108px;
}

body > header > .logobar,
body > header > .logobar > img {
  height: 20px;  
}

body > header > .minibar {
  flex-grow: 1;
  text-align: center;
}

body > header > .winbar {
  text-align: right;
}

body > header > .winbar button {
  width: 20px;
}

body > header > .navbar {
  flex-grow: 1;
}

body > header > .userbar {
  text-align: right;
}

body > footer {
  text-align: center;
}

.mainer {
  display: none;
  flex: 1;
  overflow: hidden;
  margin: 2px;
  border: 1px groove #999;
  /* DEBUG: */
  background-color: lightseagreen;
}

.mainer > legend {
  margin: 0 10px;
  border: 1px groove #999;
  /* DEBUG: */
  background-color: lightseagreen;
}

.hide {
  display: none;
}
